package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.exception.MyException;
import com.itheima.health.pojo.CheckItem;

import java.util.List;

/**
 * @Author: ZPENG
 * @Date: 2020/11/21 21:25
 */
public interface CkeckItemService {
    /**
     * 查询所有的检查项
     * @return
     */
    List<CheckItem> findAll();

    void add(CheckItem checkItem);

    PageResult<CheckItem> findPage(QueryPageBean queryPageBean);

    void deleteById(int id) throws MyException;  //在接口上异常的声明,好让dubbo知道我将抛出异常,,在实现类上声明是没用的

    CheckItem findById(int id);

    void update(CheckItem checkItem);
}
